package com.fh.modules.system.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fh.common.web.impl.AbstractServiceImpl;
import com.fh.modules.system.entity.SysAnnouncement;
import com.fh.modules.system.mapper.SysAnnouncementMapper;
import com.fh.modules.system.mapper.SysAnnouncementSendMapper;
import com.fh.modules.system.service.ISysAnnouncementService;


/**
 * @author Qiu,Junda
 * @date 2019年4月3日
 * @description 系统通告表
 */
@Service
public class SysAnnouncementServiceImpl extends AbstractServiceImpl<SysAnnouncementMapper, SysAnnouncement> implements ISysAnnouncementService {

	@Resource
	private SysAnnouncementMapper sysAnnouncementMapper;
	
	@Resource
	private SysAnnouncementSendMapper sysAnnouncementSendMapper;
	

	@Override
	public Page<SysAnnouncement> querySysCementPageByUserId(Page<SysAnnouncement> page, String userId,String msgCategory) {
		 return page.setRecords(sysAnnouncementMapper.querySysCementListByUserId(page, userId, msgCategory));
	}
}
